package com.ylyq.ylxx.service;

import com.ylyq.ylxx.entity.Chat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ylyq.ylxx.model.bean.SendQuestion;
import com.ylyq.ylxx.model.request.DeleteAnserRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaweichao
 * @since 2020-10-19
 */
public interface IChatService extends IService<Chat> {

    SendQuestion sendQuestion(String question);

    void submitAnser(String question,String anser);

    void importChat(MultipartFile file);

    void deleteAnser(DeleteAnserRequest deleteAnserRequest);

    int insertBatch(List<Chat> addChatList);
}
